import { NextFunction, Request, Response, Router } from "express";
import { BaseController } from "../BaseController";

 export class IndexController extends BaseController {
 
 /**
   * The home page route.
   *
   * @class IndexRoute
   * @method index
   * @param req {Request} The express Request object.
   * @param res {Response} The express Response object.
   * @next {NextFunction} Execute the next method.
   */
  public index(req: Request, res: Response, next: NextFunction) {
    //set custom title
   
    //set message
    let options: Object = {
      "message": "Welcome to the Tour of Heros",
      "title":"Home | Tour of Heros"
    };

    //render template
    this.render(req, res, "index", options);
  }
 }
